<%@ page language = "java" contentType = "text/html; charset=UTF-8" pageEncoding = "UTF-8" %>
<%@ include file = "/WEB-INF/jsp/sys/css.jsp" %>

<html lang = "en" >
<head >
    <title ></title >
    <style type="text/css">
        .layui-form-checkbox{
            /* 			 margin-top: 6px !important; */
        }
    </style>
    <script type = "text/javascript"
            src = "${pageContext.request.contextPath}/modules/dashboard/messageinfo/ctrl/messageinfo.js" ></script >
    <script >
        var basePath = "${pageContext.request.contextPath}";
        var nginxpath='${cp:SYS_VALUE("nginxpath")}/';
    </script >
</head >
<body >
<div style="margin:0px; background-color: white; margin:10px 10px;" class="search" >
    <div class="layui-tab layui-tab-card" style="padding:5px;">
        <form  id="scheduleForm" class="layui-form layui-form-pane" >
            <div class = "layui-form-item" >
                <div class = "layui-inline" >
                    <label class = "layui-form-label" >来源：</label >
                    <div class = "layui-input-inline" >
                        <select name = "s_systemId" lay-search id = "systemId" >
                            <option value = "" >请选择来源</option >
                            <c:forEach items = "${cp:DICTIONARY('ptbmxx')}" var = "row" >
                                <option value = "${row.dataCode }" >${row.dataValue }</option >
                            </c:forEach >
                        </select >
                    </div >
                </div >
                <c:if test="${param.dataType eq '1'}">
                <div class = "layui-inline" >
                    <label class = "layui-form-label" >是否已读：</label >
                    <div class = "layui-input-inline" >
                        <select name = "s_ifread" lay-search id = "ifread" >
                            <option value = "" >请选择</option >
                            <option value="0">已读</option>
                            <option value="1">未读</option>
                        </select >
                    </div >
                </div >
                </c:if>
                <!-- 按钮组 -->
                <div class="layui-btn-group">
                    <a class = "layui-btn onQuery" lay-submit lay-filter = "searchBtn" id = "searchBtn"
                       type = "button">查询</a>
                    <button type="reset" class="layui-btn">重置</button>
                </div>
            </div >

        </form >
    </div >
</div >
<div style="margin:0px; background-color: white; margin:0 10px;" >
    <div class="layui-tab layui-tab-card" style="padding:5px;">
        <table class = "layui-table" id = "messageInfoTable"
               lay-data = "{id:'messageInfoTable',url:'${pageContext.request.contextPath}/system/messageInfo?s_dataType=${param.dataType}',page: true}"
               lay-filter = "messageInfoFilter" >
            <thead >
            <tr >
                <th lay-data = "{type:'numbers',width:40,align:'left'}">序号</th>
                <th lay-data = "{field:'dataTitle',width:540,sort:true,align:'left'}" >标题</th >
                <th lay-data = "{field:'systemId',width:140,sort:true,align:'left'}" >来源</th >
                <th lay-data="{field:'createTime',width:140, templet: '#filedateTpl',sort:true,align:'left'}">推送时间</th>
                <th lay-data = "{width:70, toolbar:'#toolbar',align:'left'}" >操作</th >
            </tr >
            </thead >
        </table >
    </div>
</div >
<div style="text-align: center;margin-top: 10px" >
    <button class="layui-btn layui-btn-primary" onclick="CloseWin()">关闭</button>
</div>
</body >
<script type="text/html" id="filedateTpl">
    {{formatDate(d.createTime,'yyyy-MM-dd')}}
</script>
<script type = "text/html" id = "toolbar" >
    <a style="color: #1E9FFF;" href="#" lay-event="detail">查看&nbsp;&nbsp;</a>
</script >
</html >
